3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and manipulate polyhedra. See "Polyhedra" for the definition of a polyhedron.
You can use the Q3Polyhedron_New function to create a new polyhedron.
TQ3GeometryObject Q3Polyhedron_New (
const TQ3PolyhedronData *polyhedronData);
You can use the Q3Polyhedron_Submit function to submit an immediate polyhedron for drawing, picking, bounding, or writing.
TQ3Status Q3Polyhedron_Submit (
const TQ3PolyhedronData *polyhedronData,
TQ3ViewObject view);
The Q3Polyhedron_Submit function submits for drawing, picking, bounding, or writing the immediate polyhedron whose shape and attribute set are specified by the polyhedronData parameter. The polyhedron is drawn, picked, bounded, or written according to the view characteristics specified in the view parameter.
You can use the Q3Polyhedron_GetData function to get the data that defines a polyhedron and its attributes.
TQ3Status Q3Polyhedron_GetData (
TQ3GeometryObject polyhedron,
TQ3PolyhedronData *polyhedronData);
The Q3Polyhedron_GetData function returns, through the polyhedronData parameter, information about the polyhedron specified by the polyhedron parameter. QuickDraw 3D allocates memory for the TQ3PolyhedronData structure internally; you must call Q3Polyhedron_EmptyData to dispose of that memory.
You can use the Q3Polyhedron_SetData function to set the data that defines a polyhedron and its attributes.
TQ3Status Q3Polyhedron_SetData (
TQ3GeometryObject polyhedron,
const TQ3PolyhedronData *polyhedronData);
You can use the Q3Polyhedron_EmptyData function to release the memory occupied by the data structure returned by a previous call to Q3Polyhedron_GetData .
TQ3Status Q3Polyhedron_EmptyData (TQ3PolyhedronData *polyhedronData);
You can use the Q3Polyhedron_GetVertexPosition function to get the position of a vertex of a polyhedron.
TQ3Status Q3Polyhedron_GetVertexPosition (
TQ3GeometryObject polyhedron,
unsigned long index,
TQ3Point3D *point);
You can use the Q3Polyhedron_SetVertexPosition function to set the position of a vertex of a polyhedron.
TQ3Status Q3Polyhedron_SetVertexPosition (
TQ3GeometryObject polyhedron,
unsigned long index,
const TQ3Point3D *point);
You can use the Q3Polyhedron_GetVertexAttributeSet function to get the attribute set of a vertex of a polyhedron.
TQ3Status Q3Polyhedron_GetVertexAttributeSet (
TQ3GeometryObject polyhedron,
unsigned long index,
TQ3AttributeSet *attributeSet);
The Q3Polyhedron_GetVertexAttributeSet function returns, in the attributeSet parameter, the set of attributes for the vertex having the index specified by the index parameter in the vertices array of the polyhedron specified by the polyhedron parameter. The reference count of the set is incremented.
You can use the Q3Polyhedron_SetVertexAttributeSet function to set the attribute set of a vertex of a polyhedron.
TQ3Status Q3Polyhedron_SetVertexAttributeSet (
TQ3GeometryObject polyhedron,
unsigned long index,
TQ3AttributeSet attributeSet);
You can use the Q3Polyhedron_GetTriangleData function to get the data for a face in a polyhedron.
TQ3Status Q3Polyhedron_GetTriangleData (
TQ3GeometryObject polyhedron,
unsigned long triangleIndex,
TQ3PolyhedronTriangleData *triangleData);
You can use the Q3Polyhedron_SetTriangleData function to set the data for a face in a polyhedron.
TQ3Status Q3Polyhedron_SetTriangleData (
TQ3GeometryObject polyhedron,
unsigned long triangleIndex,
const TQ3PolyhedronTriangleData *triangleData);
You can use the Q3Polyhedron_GetEdgeData function to get the data that describe an edge in a polyhedron.
TQ3Status Q3Polyhedron_GetEdgeData (
TQ3GeometryObject polyhedron,
unsigned long edgeIndex,
TQ3PolyhedronEdgeData *edgeData);
You can use the Q3Polyhedron_SetEdgeData function to set the data that describe an edge in a polyhedron.
TQ3Status Q3Polyhedron_SetEdgeData (
TQ3GeometryObject polyhedron,
unsigned long edgeIndex,
const TQ3PolyhedronEdgeData *edgeData);
Previous | QD3D Book | Overview | Chapter Contents | Next |